/*
 * Copyright (C) 2025 Tsingteng MicroSystem
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * @file data_int.h
 * @brief 数据通道回调注册及数据分发管理
 */

#include "nci_data.h"

/**
 * @brief 向指定通道注册DATA回调函数
 *
 * @note 不允许重复注册
 *
 * @param conn_id 通道ID
 * @param cback 回调函数
 *
 * @return 注册成功返回NCI_STATUS_OK，失败返回错误码
 */
tNCI_STATUS data_register_cback(uint8_t conn_id, tNCI_DATA_CBACK cback);
/**
 * @brief 取消指定通道的DATA回调函数
 *
 * @param conn_id 通道ID
 * @param cback 需要取消的回调函数
 *
 * @return 取消成功返回NCI_STATUS_OK，失败返回错误码
 */
tNCI_STATUS data_unregister_cback(uint8_t conn_id, tNCI_DATA_CBACK cback);
